#ifndef BMP_H
#define BMP_H

#include <QImage>
#include <Windows.h>
#include <QFile>

class Bmp
{
public:
    Bmp(QFile *image);
    Bmp(Bmp &bmp);
    ~Bmp();
    bool save(QString saveLocation);
    QImage* toQImage();
    void toGray();
    void Gausssian_blur();
    void Up_to_Down();
    void right_to_left();
    void spin_90();
    void zoom(int zoom_level);
    void add_line_for_cut(int label_up, int label_down, int label_left, int label_right);
    void cut(int x1, int x2, int y1, int y2);

    BITMAPFILEHEADER bf;
    BITMAPINFOHEADER bi;
    uchar** rgb;
};


#endif // BMP_H
